class Slot {
    props = {
        content: String,
        context: Object,
    };

    constructor() {
        if (/<[^>]+>/.test(this.props.content)) {
            $element.append($compile(this.props.content)(this.props.context ? this.props.context : $scope));
        } else {
            $element.text(this.props.content);
        }
    }
}
